import setting from '@/setting.js';

const baseModule = {
    state: {
        headerHeight: setting.headerHeight || 60,// 头部高度
        asideWidth: setting.asideWidth || 240,// 菜单宽度
        isBreadcrumb: true,// 是否显示面包屑
    },
    mutations: {
        SET_BASE_STATE (state, {key, value}) {
            state[key] = value
        },
    },
    actions: {
        setBaseState ({ commit }, data) {
            commit('SET_BASE_STATE', data)
        },
    }
}

export default baseModule